package org.itboys.mobile.entity.mongo;

import org.itboys.mongodb.entity.BaseMongoEntity;
import org.mongodb.morphia.annotations.Entity;

/**
 * Auther: 罗尧坤
 * Date: 2018/7/18
 * Description: 集楼_帮我找房_查询条件存储实体类
 */

@Entity(value = "SundayFindProduct", noClassnameStored = true)
public class SundayFindProduct extends BaseMongoEntity {
    //属性
    private Long memberId;//用户id
    private String memberName;//用户名
    //必选
    private Integer minPrice;//最小价格
    private Integer maxPrice;//最大价格
    private String roomNum;//房型: 居室数量
    private String productType;//类型: 住宅啊, 别野啊, 写字楼啊等等
    private String area;//关注的区域
    private String contactWay;//联系方式: 手机号或者微信
    private int status;//标记状态, 0: 未联系用户, 1: 已经联系用户

    //空构造器
    public SundayFindProduct() {
    }
    //全参构造器
    public SundayFindProduct( Long memberId, Integer minPrice, Integer maxPrice, String roomNum, String productType, String area, String contactWay) {
        this.memberId = memberId;
        this.minPrice = minPrice;
        this.maxPrice = maxPrice;
        this.roomNum = roomNum;
        this.productType = productType;
        this.area = area;
        this.contactWay = contactWay;
    }

    //getter, setter

    public Long getMemberId() {
        return memberId;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public Integer getMinPrice() {
        return minPrice;
    }

    public void setMinPrice(Integer minPrice) {
        this.minPrice = minPrice;
    }

    public Integer getMaxPrice() {
        return maxPrice;
    }

    public void setMaxPrice(Integer maxPrice) {
        this.maxPrice = maxPrice;
    }

    public String getRoomNum() {
        return roomNum;
    }

    public void setRoomNum(String roomNum) {
        this.roomNum = roomNum;
    }

    public String getProductType() {
        return productType;
    }

    public void setProductType(String productType) {
        this.productType = productType;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public String getContactWay() {
        return contactWay;
    }

    public void setContactWay(String contactWay) {
        this.contactWay = contactWay;
    }
    public String getMemberName() {
        return memberName;
    }

    public void setMemberName(String memberName) {
        this.memberName = memberName;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }
}
